package router

import (
	"github.com/gin-gonic/gin"
	"onerk4/zk3/api/handler"
	"onerk4/zk3/api/middleware"
	"onerk4/zk3/common/pkg"
)

func LoadRouter(r *gin.Engine) {
	r.POST("/register", handler.Register)
	r.POST("/login", handler.Login)
	r.Use(middleware.Middleware())
	r.Use(pkg.JWTAuth("2209a"))
	r.POST("/addStudyPlanShow", handler.AddStudyPlanShow)
	r.POST("/delStudyPlanShow", handler.DelStudyPlanShow)
	r.POST("/createOrder", handler.CreateOrder)
}
